<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = $show_header = 1;
include $this->admin_tpl('header_v2.0', 'admin');
?>

<div id="content"> 
    <div class="row">
        <article id="widget-grid" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
             <div class="jarviswidget jarviswidget-color-darken" id="free_data_<?php echo $_GET['menuid']?>" data-widget-editbutton="false"data-widget-togglebutton="false"  data-widget-deletebutton="false" data-widget-fullscreenbutton="false">
                <header>
                      <span class="widget-icon"> <i class="fa fa-table txt-color-white"></i> </span>
                     <h2>免费资源用户</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
						<div class="widget-body-toolbar">
							<form name="searchform" action="" method="get" >
								<input type="hidden" value="shuafen" name="m"/>
								<input type="hidden" value="member_enter" name="c"/>
								<input type="hidden" value="free_data" name="a"/>
								<div class="row mb10">
									<div class="col-sm-2 ">
										手机号：<input name="username" type="text" value="<?php echo $tel; ?>" class="input-text form-control" />
									</div>
									<div class="col-sm-2 ">
										&nbsp;<br>
										<button type="submit" name="search"  class="btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
									</div>
								</div>
							</form>
						</div>
                        <form name="myform" id="myform" action="?m=shuafen&c=space&a=delete" method="post" class="form-horizontal">
                            <div class ="table-content">
                                <table width="100%" cellspacing="0" class="table  pinned table-bordered  table-striped table-condensed ">
                                    <thead>
                                        <tr>
											<th>序号</th>
											<th>用户名(手机)</th>
											<th>昵称</th>
											<th>性别</th>
											<th>开始时间</th>
											<th>点击被加好友的次数</th>
											<th>是否置顶</th>
											<th width="100"><?php echo L('operations_manage')?></th>
                                        </tr>
                                    </thead>
                                </table>
                                <table width="100%" cellspacing="0" class="table table-bordered  table-striped table-condensed table-hover">
                                    <thead>
                                        <tr>
											<th>序号</th>
											<th>用户名(手机)</th>
											<th>昵称</th>
											<th>性别</th>
											<th>开始时间</th>
											<th>点击被加好友的次数</th>
											<th>是否置顶</th>
											<th width="100"><?php echo L('operations_manage')?></th>
										</tr>
                                    </thead>
                                    <tbody>
                                        <?php 
                                            if(is_array($infos)){
                                                foreach($infos as  $k=>$info){
                                        ?>
                                    <tr>
										<td><?php echo $k+1?></td>
										<td><?php echo $info['username']?></td>
										<td><?php echo $info['nickname']?></td>
										<td><?php echo $sex[$info['sex']]?></td>
										<td><?php echo $info['start_time']?date('Y-m-d',$info['start_time']):''?></td>
										<td><?php echo $info['click_add_times']?></td>
										<td><?php echo $top[$info['free_top']]  ?></td>
                                        <td>
                                          <div class="btn-group">
												<?php if($info['free_top'] == 0){ ?>
													<a href="javascript:void(0);" class="btn bg-color-blueDark txt-color-white mode-alert" data-title="置顶" data-msg="确认置顶" data-href="?m=shuafen&c=member_enter&a=top_free_data&userid=<?php echo $info['userid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>"><i class="fa fa-info"></i> 置顶</a>
												<?php }else{ ?>
													<a href="javascript:void(0);" class="btn bg-color-blueDark txt-color-white mode-alert" data-title="取消置顶" data-msg="确认取消置顶" data-href="?m=shuafen&c=member_enter&a=top_free_data&action=cancel_top&userid=<?php echo $info['userid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>"><i class="fa fa-trash-o"></i> 取消置顶</a>
												<?php } ?>
                                              <!-- <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
                                                  <span class="caret"></span>
                                              </button>
                                              <ul class="dropdown-menu">
                                                  <li>
                                                       <a href="javascript:void(0);" class="mode-alert" data-title="取消置顶" data-msg="确认取消置顶" data-href="?m=shuafen&c=index&a=top_free_member&action=cancel_top&userid=<?php echo $info['userid']?>"><i class="fa fa-trash-o"></i> 删除</a> 
                                                  </li>
                                                 
                                              </ul> -->
                                          </div>
                                        </td>
                                    </tr>  

                                        <?php
                                        }
                                    }
                                    ?>
                                    </tbody>
                                </table>

                               <div class="widget-footer">
                                 <div id="pages"><?php echo $pages;?></div>

                                </div>
                            </div>
                        </form>
                    </div>
				</div>
             </div>
        </article>
    </div>
</div>
<!-- 
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
	</div>
</div>
<div class="pad-lr-10">
	<form name="myform" action="?m=shuafen&c=space&a=delete" method="post" id="myform">
		<div class="table-list">
			<table width="100%" cellspacing="0">
				<thead>
				<tr>
					<th width="6%" align="center">序号</th>
					<th width="12%" align="center">用户名(手机)</th>
					<th width="12%" align="center">昵称</th>
					<th width="12%" align="center">性别</th>
					<th width='10%' align="center">开始时间</th>
					<th width="10%" align="center">点击被加好友的次数</th>
					<th width="10%" align="center">是否置顶</th>
					<th width="20%" align="center"><?php echo L('operations_manage')?></th>
				</tr>
				</thead>
				<tbody>
				<?php
				if(is_array($infos)){
					foreach($infos as $k=>$info){
						?>
						<tr>
							<td width="6%"  align="center"><?php echo $k+1?></td>
							<td width="12%"  align="center"><?php echo $info['username']?></td>
							<td width="12%"  align="center"><?php echo $info['nickname']?></td>
							<td width="6%"  align="center"><?php echo $sex[$info['sex']]?></td>
							<td width='10%' align="center"><?php echo $info['start_time']?date('Y-m-d',$info['start_time']):''?></td>
							<td width="10%" align="center"><?php echo $info['click_add_times']?></td>
							<td width="10%" align="center"><?php echo $top[$info['free_top']]  ?></td>
							<td width="20%" align="center">
								<?php if($info['free_top'] == 0){ ?>
									<a href='?m=shuafen&c=member_enter&a=top_free_data&userid=<?php echo $info['userid']?>' onClick="return confirm('<?php echo L('top', array('message' => addslashes(new_html_special_chars($info['username']))))?>')"><?php echo L('置顶')?></a>
								<?php }else{ ?>
									<a href='?m=shuafen&c=member_enter&a=top_free_data&action=cancel_top&userid=<?php echo $info['userid']?>' onClick="return confirm('<?php echo L('cancel_top', array('message' => addslashes(new_html_special_chars($info['username']))))?>')"><?php echo L('取消置顶')?></a>
								<?php } ?>
							</td>
						</tr>
						<?php
					}
				}
				?>
				</tbody>
			</table>
			<div id="pages"><?php echo $pages?></div>
	</form>
</div> -->
</body>
</html>